package com.cms.recursoshumanos.handler;

import com.cms.recursoshumanos.activity.main.MainRecursosHumanosActivity;
import com.cms.recursoshumanos.cache.UserInfoCache;
import com.cms.recursoshumanos.constant.Constant;
import com.cms.recursoshumanos.facade.MyUserDetailActivyFacade;

public class MyUserDetailActivyHandler 
{

	public String facadeMyUserDetail(String username, String password)
	{
		MyUserDetailActivyFacade login_facade = new MyUserDetailActivyFacade(username, password);
		return login_facade.enviarSolicitud();
	}
	public String MyUserDetail (String username, String password)
	{
		if(UserInfoCache.getInstance().cache_utilizable(0,	MainRecursosHumanosActivity.getAppContext()))
		{
			return Constant.CODE_OK;
		}
		else
		{
			return facadeMyUserDetail(username, password);
		}
		
	}
	public String refreshMyUserDetail(String username, String password)
	{
		return facadeMyUserDetail(username, password);
	}
	

}
